package com.ruoyi.gather.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.ErpSellerStoreProduct;
import com.ruoyi.gather.api.domain.ErpSellerStoreProductExpand;
import com.ruoyi.gather.api.domain.ErpSellerStoreProductSku;
import com.ruoyi.gather.api.domain.dto.PublishInnerAuthDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


@FeignClient(contextId = "remoteUsdExchangeService", value = ServiceNameConstants.GATHER_SERVICE)
public interface RemoteUsdExchangeService {

    /**
     * 根据时间获取汇率
     * @param time 时间
     * @param currencyCode 币种
     * @return 汇率
     */
    @GetMapping("/gather/usdExchange/getExchangeByTime/{time}/{currencyCode}")
    public R<Object> getExchangeByTime(@PathVariable("time") String time, @PathVariable("currencyCode") String currencyCode);

}
